<div class="page table-section" data-page="createInsurance" id="createInsurance" action="createInsurance">
	<p class="location">
		当前位置:
		<label class="locationInfo">保险管理>保险添加</label>
	</p>
	<div class="createInsurance">
		<input type="hidden" name="insuranceId" />
		<div id="createInsuranceBody"></div>
		<script type="text/template" id="createInsuranceTpl">
			{@each datas as it}
			<div class="dataTitle">保险基本信息：</div>
			<div class="dataline">
				<input type="hidden" name="financeId" value="${it.financeId}" />
				<div>投保单号：
					<input isNULL="1" codeName="投保单号" type="text" name="insuranceNumber" />
				</div>
				<div>投保时间：
					<input isNULL="1" codeName="投保时间" readonly="readonly" onclick="WdatePicker({})" type="text" name="insuranceDate" />
				</div>
				<div>
					保险公司：
					<select isNULL="1" codeName="保险公司" name="insuranceCompany" class="insuranceCompany"></select>
				</div>
			</div>
			<div class="dataline">
				<div>投保类型：
					<select class="mold" name="mold" isNULL="1" codeName="投保类型"><option value="1">内部平台</option><option value="2">供应商</option><option value="3">客户</option><option value="4">其他</option></select>
				</div>
				<div>投保人单位：
					<input class="applicantId" name="applicantId" type="hidden" />
					<input readonly="readonly" value="平台" class="applicantDepartment" isNULL="1" codeName="投保人单位" type="text" name="applicantDepartment" />
				</div>
				<div>投保人：
					<input isNULL="1" codeName="投保人" type="text" name="applicant" />
				</div>
			</div>
			<div class="dataline">
				<div>购买类型：<select name="purchase" isNULL="1" codeName="购买类型"><option value="1">委托购买</option><option value="2">平台自有</option></select></div>
				<div>投保人地址：
					<input isNULL="1" codeName="投保人地址" type="text" name="applicantAddress" />
				</div>
				<div></div>
			</div>
			<div class="dataline">
				<div>起运地：
					<input type="text" readonly="readonly" name="" value="${it.deliverProvince}${it.deliverCity}${it.deliverDistrict}${it.deliverAddress}" />
				</div>
				<div>目的地：
					<input type="text" readonly="readonly" name="" value="${it.receiveProvince}${it.receiveCity}${it.receiveDistrict}${it.receiveAddress}" />
				</div>
				<div>融资编号：
					<input type="text" readonly="readonly" name="" value="${it.financeNumber}" />
				</div>
			</div>
			<div class="dataline">
				<div>
					状态：
					<select disabled="disabled" name="">
						<option value="1">待审批</option>
						<option value="2">已生效</option>
						<option value="3">已撤销</option>
					</select>
				</div>
				<div></div>
				<div></div>
			</div>
			<div class="dataline" style="margin-left: 19px;">
				保险副本信息：
				<input id="insuranceAttach" class="none" type="file" name="file">
				<input isNull="1" codeName="保险副本信息" id="insuranceFileUuid" type="hidden" name="insuranceFileUuid">
				<span class="fs"></span>
				<label class="insuranceAttach" for="insuranceAttach">添加</label>
			</div>
			<div class="dataline" style="text-align: right; margin-right: 170px;">
				审核意见：
				<textarea  codeName="审核意见" name="overRemark">${it.overRemark}</textarea>
			</div>
			<div class="dataline" style="text-align: right; margin-right: 170px;">
				投保说明：
				<textarea isNull="1" codeName="投保说明" name="insureRemark"></textarea>
			</div>
			<div class="dataTitle">货物信息：</div>
			<div class="dataTable">
				<table>
					<tr>
						<th>货名</th>
						<th>规格</th>
						<th>数量</th>
						<th>体积</th>
						<th>重量</th>
						<th>货物估值</th>
					</tr>
					{@each it.bulkstocks as item}
					<tr>
						<td>${item.bulkstockName}</td>
						<td>${item.specification}</td>
						<td>${item.quantity}${item.unit}</td>
						<td>${item.weight}吨</td>
						<td>${item.volume}m³</td>
						<td>&#65509;${item.evaluateValuation}</td>
					</tr>
					{@/each}
				</table>
			</div>
			{@/each}
		</script>
		<div class="dataTitle">箱信息：</div>
		<div style="margin: 0 48px; margin-top: 15px; ">
			<table id="createInsuranceBulkstockListingBody">
			</table>
		</div>
		<script type="text/template" id="createInsuranceBulkstockListingTpl">
			<tr>
				<th>箱号</th>
				<th>箱型尺寸</th>
				<th>货物名称</th>
				<th>规格型号</th>
				<th>重量</th>
				<th>数量</th>
				<th>体积</th>
				<th>货物估值</th>
			</tr>
			{@each datas as it}
			<tr>
				<td>${it.caseNumber}</td>
				<td>${it.caseSize}</td>
				<td>
					{@each it.containerBulkstocks as item} ${item.bulkstockName}
					<br /> {@/each}
				</td>
				<td>
					{@each it.containerBulkstocks as item} ${item.specification}
					<br /> {@/each}
				</td>
				<td>
					{@each it.containerBulkstocks as item} ${item.quantity}${item.unit}
					<br /> {@/each}
				</td>
				<td>
					{@each it.containerBulkstocks as item} ${item.weight}吨
					<br /> {@/each}
				</td>
				<td>
					{@each it.containerBulkstocks as item} ${item.volume}m³
					<br /> {@/each}
				</td>
				<td>
					{@each it.containerBulkstocks as item} &#65509;${item.evaluateValuation}
					<br /> {@/each}
				</td>
			</tr>
			{@/each}
		</script>
	</div>
	<a id="createInsuranceNext">下一步，选择险种</a>
</div>